import api from '@/http/index'

/* 列表 */
export const getTablesList = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Nurse/GetGridJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
//获取门店列表
export const getShopData = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Shop/GetGridJson', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
export const getShopDataList = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Open/CityShopList', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

export const getItemData = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Nurse/GetForm', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
export const getItemDetail = (data) => {
    return new Promise((resolve, reject) => {
        api.get('/api/Nurse/Detail', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
export const Toexamine = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Nurse/AuditPass', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};

export const reject = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Nurse/AudioReject', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};


export const submit = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Nurse/SubmitForm', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};
export const SendMessage = (data) => {
    return new Promise((resolve, reject) => {
        api.post('/api/Nurse/SendMessage', data).then((res) => {
            resolve(res);
        }).catch(err => {
            reject(err)
        })
    });
};


